import { createApp } from 'vue'
import { createStore } from 'vuex'
import App from '../App'

const store = createStore({
    state() {
        return {
            url: " ",
            name: '',
            ar: "",
            time: '',
            id: 1707176252,

        }
    },
    mutations: {
        getaudio(state, mu) {
            state.name = mu.muname;
            state.ar = mu.muar;
            state.url = mu.muurl;
        },
        gettime(state, time) {
            state.time = time;
        }
    },
    actions: {},
    modules: {}
})
const app = createApp({ App })

// 将 store 实例作为插件安装
app.use(store)
export default store